﻿using Microsoft.SqlServer.Management.Smo;
using System;

namespace Bewise.SmartIndexManager.Core.Classes.Operations
{
    public abstract class AbstractOperation
    {
        public DateTime StartDateTime { get; set; }
        public DateTime FinishDateTime { get; set; }

        public Index IndexSource { get; set; }
        public abstract void OperationIndex();
        public string OperationDescription()
        {
            return string.Format("Operation = {0} Index Name = {1}", OperationName(), IndexSource.Name);
        }

        public abstract string OperationName();
    }
}